package com.cetcs.kmga.dataManager.service.sysManager;


import com.cetcs.kmga.common.Data;
import com.cetcs.kmga.common.Page;
import com.cetcs.kmga.dataManager.entity.dataManager.ClientDBCluster;
import com.cetcs.kmga.dataManager.entity.dataManager.vo.ResourceTreeDataBaseVo;
import com.cetcs.kmga.dataManager.entity.sysManager.LocalServerInfo;
import com.cetcs.kmga.dataManager.entity.sysManager.SysEmailSerConf;
import com.cetcs.kmga.dataManager.entity.sysManager.vi.SysEmailSerConfVi;
import com.cetcs.kmga.dataManager.entity.sysManager.vo.ServerStatusVo;

import java.util.List;


/**
 * SysManagerService
 * Created by yyangs on 2017/8/30.
 */
public interface ClientDBService {

    //获取客户端和集群信息
    public List<ResourceTreeDataBaseVo> getClientNodeTree(Data dataMap) throws Exception;

    //根据ID获取客户端集群信息
    public ClientDBCluster getClientClusterById(Data dataMap) throws Exception;

    //更新客户端集群信息
    public Integer updateClientCluster(Data dataMap) throws Exception;

    //添加客户端集群信息
    public Integer addClientCluster(Data dataMap) throws Exception;

    //添加或者修改客户端信息
    public Integer saveOrUpdateClient(Data dataMap) throws Exception;

    //删除客户端信息
    public Integer deleteClient(Data dataMap) throws Exception;

    //删除客户端集群信息
    public Integer deleteClientCluster(Data dataMap) throws Exception;

    /**
     * 查询客户端信息 通过Ip
     */
    public String exportExcelForClientData(Data dataMap) throws Exception;

    /**
     * 解析Excel文档 批量添加数据
     */
    public Integer importExcelForClientData(Data dataMap) throws Exception;
}
